there are two well-known stories concerning subsequent events: one is that doman then became seimei ' s student as had been agreed , while the other is that while seimei was away visiting china as a member of kentoshi and training under the guidance of 伯道上人 , doman and seimei ' s wife began to have an affair and , upon seimei ' s return , using a magic he had mastered by sneaking a look at a book that 伯道上人 had given to seimei , doman won a duel to the death with seimei , which prompted 伯道上人to come to japan as his instincts alerted him to seimei ' s death , whereupon he resuscitated seimei and decapitated doman; some time later , seimei wrote some books that were subsequently compiled into ' kinugyokutoshu ' . この後、約束通り道満は晴明の弟子となった、と言われているという話や、遣唐使として派遣され唐の伯道上人のもとで修行をしていた晴明の留守中に晴明の妻とねんごろになり不義密通を始めていた道満が、晴明の唐からの帰国後に伯道上人から授かった書を盗み見て身につけた呪術で晴明との命を賭けた対決に勝利して晴明を殺害し、第六感で晴明の死を悟った伯道上人が急遽来日して呪術で晴明を蘇生させ道満を斬首、その後に晴明は書を発展させて「金烏玉兎集」にまとめ上げたといった話が有名である。